import { Form, Modal } from 'antd';
import React from 'react';

interface DetailModalProps {
  detailModalShow: boolean;
  showContent: string;
  onCancel: () => void;
}
const DetailModal: React.FC<DetailModalProps> = ({
  detailModalShow,
  showContent,
  onCancel,
}) => {
  return (
    <Modal
      title="详情"
      open={detailModalShow}
      onCancel={() => onCancel()}
      footer={null}
    >
      <Form>
        <Form.Item label="事项内容" name="content">
          <div>{showContent}</div>
        </Form.Item>
      </Form>
    </Modal>
  );
};

export default DetailModal;
